﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using SharePointExplorer.Classes;

namespace SharePointExplorer
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private MainWindow instance;
        public Stack<string> controlStack = new Stack<string>();
        public string CurrentList;
        public string TextToRead = string.Empty;
        public MainWindow MainWindowInstance
        {
            get
            {
                if (instance == null)
                    instance = new MainWindow();
                return instance;
            }
            set
            {
                instance = value;
            }
        }

        private SpeechService speechService;
        public SpeechService SpeechServiceInstance
        {
            get
            {
                if (speechService == null)
                    speechService = new SpeechService();
                return speechService;
            }
            set
            {
                speechService = value;
            }
        }
    }
}
